<?php
class Index extends Controller implements IController {
	
	public function Main() {
		$this->view('index');
	}
	
	public function PostGetExample($a='Default value', $b = '') {
		$this->assign('a', $a);
		$this->assign('b', $b);
		
		if($this->post('testpost')) {
			if($this->post('testpost') == "test") {
				$this->assign('postresult', 'Correct');
			} else {
				$this->assign('postresult', 'Not Correct');
			}
		}
		
		$this->assign('test_array', array('row 1','row 2' ));
		
		// Get account information and assign in to the view to display it.
		$this->assign('account', $this->model->getUser(1));
		
		$this->view('postgetexample');
	}	
	
}
?>